package com.routz.nettydemo.pojodemo.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 服务器反馈的响应处理信息
 */
public class BookResponseMsg implements Serializable {
    private static final long serialVersionUID = -4984721370227929766L;

    private boolean success;//是否操作成功

    private User user;//请求用户

    private String msg;//反馈信息

    private int code;//请求指令

    private Train train;//火车车次

    private Date startTime;//出发时间

    private Ticket ticket;//订票成功后具体出票票据

    public BookResponseMsg() {
    }

    public BookResponseMsg(boolean success, User user, String msg, int code, Train train, Date startTime, Ticket ticket) {
        this.success = success;
        this.user = user;
        this.msg = msg;
        this.code = code;
        this.train = train;
        this.startTime = startTime;
        this.ticket = ticket;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Train getTrain() {
        return train;
    }

    public void setTrain(Train train) {
        this.train = train;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Ticket getTicket() {
        return ticket;
    }

    public void setTicket(Ticket ticket) {
        this.ticket = ticket;
    }
}
